package com.hzbc.faceattendance.service.impl;import com.hzbc.faceattendance.utils.FileUploadUtil;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.scheduling.annotation.Async;import org.springframework.stereotype.Service;import org.springframework.web.multipart.MultipartFile;import java.io.IOException;import java.util.concurrent.CompletableFuture;/** * @author junmu * @time 2025-07-24 */@Servicepublic class FileService {    @Autowired    private FileUploadUtil fileUploadUtil;    @Async("fileUploadExecutor")    public CompletableFuture<String> asyncUpload(MultipartFile file) throws IOException {        // 调用原有的同步上传方法        return CompletableFuture.completedFuture(fileUploadUtil.uploadFile(file));    }}